﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace WebUI.Extensions
{
    public class CommonFn
    {
        public static int GetContentID(string idName)
        {
            int cataId;
            if (!int.TryParse(ConfigurationManager.AppSettings[idName], out cataId))
            {
                cataId = 0;
            }
            return cataId;
        }
    }
}